cd "F:\Dropbox\School\Research Projects\Populism\Articles\Populist Psychology\Submission files\JOP 2020\Final\Replication files"
use "study 1 prepped.dta", clear

label define treatlab2 0 "Control" 1 "Econ. Anxiety" 2 "Econ. Anger" 3 "Populism" 4 "Cultural Discontent"
label values treat treatlab2

*Figure 1
*creates and saves estimates
reg ant i.treat
estimates store a
reg ppl i.treat
estimates store b
reg cultdisc i.treat
estimates store c
reg idmarg i.treat
estimates store d
reg man i.treat
estimates store e
reg anger i.treat
estimates store f
reg fear i.treat
estimates store g

*creates the graph
coefplot a, bylabel(Antielitism) xline(0)|| /*
*/b, bylabel(Popularism) xline(0)|| /*
*/e, bylabel(Manichaeism) xline(0)|| /*
*/c, bylabel("Value" "Discontent") xline(0)|| /*
*/d, bylabel("Identity" "Discontent") xline(0)|| /*
*/f, bylabel(Anger) xline(0)|| /*
*/g, bylabel(Fear) xline(0)|| /*
*/, byopts(row(1)) bycoefs drop (_cons) msize(vsmall) bgcolor(white) graphregion(color(white))
